﻿using UnityEngine;
using UnityEditor;
using PureMVC.Patterns;
using PureMVC.Interfaces;
using OrderSystem;

public class ClientGetOrderFromWaiterCommand : SimpleCommand
{
    public override void Execute(INotification notification)
    {
        base.Execute(notification);


        ClientProxy clientProxy = Facade.RetrieveProxy(ClientProxy.NAME) as ClientProxy;

        clientProxy.modifyClientStateToWaitFood((notification.Body as Order).client);
    }
}